﻿using System.ComponentModel;
using System.Runtime.Serialization;

namespace Oxage.Models
{
	//TODO: Serialize to ini file
	[DataContract(Name = "Axis")]
	public class AxisConfig : INotifyPropertyChanged
	{
		#region Public properties
		[DataMember(Name = "Name")]
		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				if (this.name != value)
				{
					this.name = value;
					OnPropertyChanged("Name");
				}
			}
		}
		private string name;
		#endregion

		#region INotifyPropertyChanged Members
		public event PropertyChangedEventHandler PropertyChanged;
		protected virtual void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
		#endregion
	}
}
